package edu.neusoft.springhtmldemo.service;

import edu.neusoft.springhtmldemo.domain.LogManagement;
import edu.neusoft.springhtmldemo.mapper.LogManagementMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogManagementService {
    @Autowired
    private LogManagementMapper mapper;

    public List<LogManagement> showLogManagement() {
       return mapper.showLogManagement();
    }

    public List<LogManagement> selectLogManagement(String maintainNum, String mantainBeginTime, String mantainEndTime, String maintainer) {
        return mapper.selectLogManagement(maintainNum,mantainBeginTime,mantainEndTime,maintainer);
    }

    public void updateUserLogManagement(LogManagement logManagement) {
        mapper.updateUserLogManagement(logManagement);
    }

    public void addLogManagement(LogManagement management) {
        mapper.addLogManagement(management);
    }
}
